package arina.university.dao.factory.impl;

import arina.university.dao.GroupDAO;
import arina.university.dao.StudentDAO;
import arina.university.dao.UniversityDAO;
import arina.university.dao.factory.DAOFactory;
import arina.university.dao.impl.memory.MemoryGroupDAO;
import arina.university.dao.impl.memory.MemoryStudentDAO;
import arina.university.dao.impl.memory.MemoryUniversityDAO;

/**
 * Created with IntelliJ IDEA.
 * User: user
 * Date: 01.12.13
 * Time: 19:26
 * To change this template use File | Settings | File Templates.
 */
public class MemoryDAOFactory extends DAOFactory {
    public StudentDAO getStudentDAO() {
        return MemoryStudentDAO.getInstance();
    }

    public GroupDAO getGroupDAO() {
        return MemoryGroupDAO.getInstance();
    }

    public UniversityDAO getUniversityDAO() {
        return MemoryUniversityDAO.getInstance();
    }
}